package com.iotechn.unimall.data.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.iotechn.unimall.data.domain.PurchaseWarehouseOperLogDO;
import com.iotechn.unimall.data.dto.statistics.StatisticCurrencyDTO;
import com.iotechn.unimall.data.dto.warehouse.PurchaseWarehouseOperLogDTO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;


/**
 * 销售操作记录
 *
 * @author wxw
 * @email
 * @date 2020-03-24 17:22:46
 */
public interface PurchaseWarehouseOperLogMapper extends BaseMapper<PurchaseWarehouseOperLogDO> {

    //通过仓库Id或者入库单Id查询
    List<PurchaseWarehouseOperLogDTO> listWarehouseOrderLogsByPara(@Param("pOrderId") Long pOrderId);

    /**
     * 大库  期初/期末  成本
     * @param startDate
     * @return
     */
    StatisticCurrencyDTO warehouseCostStatistic(@Param("startDate") Date startDate);
}
